<!--待接单-->
{empty name="data.list"}
<p style="text-align: center; margin-top: 4rem;">暂无订单</p>
{else /}
    {volist name="data.list" id="vo"}
        <div class="lookIndent-list">
            <div class="weui-cell">
                {gt name="vo.shop_id" value="0"}
                    <div class="weui-cell__hd indentImg">
                        <img src="{$vo.shop_logo}" alt="">
                    </div>
                    <div class="weui-cell__bd">
                        <p class="fs07">{$vo.shop_name}</p>
                        <div class="my-flex1">
                            <p class="xx">
                                <!--满星星加class为 active-->
                                <span {gt name="vo.shop_level" value="0"} class="active" {/gt}></span>
                                <span {gt name="vo.shop_level" value="1"} class="active" {/gt}></span>
                                <span {gt name="vo.shop_level" value="2"} class="active" {/gt}></span>
                                <span {gt name="vo.shop_level" value="3"} class="active" {/gt}></span>
                                <span {gt name="vo.shop_level" value="4"} class="active" {/gt}></span>
                            </p>
                            <span class="fs06 exclusive-count">{$vo.shop_level}分</span>
                        </div>
                    </div>
                {else /}
                    <div class="weui-cell__bd">
                        <p class="fs07">等待接单中</p>
                        <div class="my-flex1">
                            {$vo.create_time|date="Y-m-d H:i:s", ###}
                        </div>
                    </div>
                {/gt}
                <div class="weui-cell__ft">
                    <p class="cl-c40 fs06">
                        {$vo.status_text}
                    </p>
                </div>
            </div>
            {if condition="!$vo.products || $vo.status == 2"}
                <a href="{:url('info', ['id' => $vo.id])}" class="weui-cell confirmOrder">
                    <div class="weui-cell__hd">
                        <img src="__STATIC__/home/images/product3.png" alt="">
                    </div>
                    <div class="weui-cell__bd ">
                        <p class="fs06 listFont">{$vo.msg}</p>
                    </div>
                </a>
            {else /}
                {volist name="vo.products" id="v"}
                    <a href="{:url('info', ['id' => $vo.id])}" class="weui-cell confirmOrder">
                        <div class="weui-cell__hd">
                            <img src="{$v.image}" alt="">
                        </div>
                        <div class="weui-cell__bd ">
                            <p class="fs06 listFont">{$v.name}</p>
                        </div>
                        <div class="weui-cell__ft fs06">
                            <p>￥{$v.price}</p>
                            <p>x{$v.num}</p>
                        </div>
                    </a>
                {/volist}
            {/if}
            <div class="weui-cell">
                <div class="weui-cell__bd">

                </div>
                <div class="weui-cell__ft" style="padding-right: 10px">
                    <div class="fs065">
                        共<span>{$vo.products_num}</span>件商品 合计: <span>￥{$vo.price}</span>
                    </div>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__bd"> </div>
                <div class="weui-cell__ft">
                    {if condition="($vo.status == 1 && $vo.type == 2) OR ($vo.status == 3 && $vo.type == 1)"}
                        <a href="{:url('pay')}?model=order&id={$vo.id}" class="indent-btn-f0a">立即支付</a>
                    {/if}
                    {in name="vo.status" value="1, 2, 3"}
                        <a href="javascript:;" class="indent-btn-999 cancel-order" data-order-id="{$vo.id}">取消订单</a>
                    {/in}
                    {in name="vo.status" value="3"}
                        <a href="javascript:;" class="indent-btn-999 back-merchant" data-order-id="{$vo.id}">退回商家</a>
                    {/in}
                    {gt name="vo.shop_id" value="0"}
                        {in name="vo.status" value="4"}
                            <a href="javascript:;" class="indent-btn-b20 confirm-receipt" data-order-id="{$vo.id}">确认收货</a>
                        {/in}
                    {else /}
                        {in name="vo.status" value="5"}
                            <a href="javascript:;" class="indent-btn-b20 confirm-receipt" data-order-id="{$vo.id}">确认收货</a>
                        {/in}
                    {/gt}
                    {notempty name="vo.express_sn"}
                        <a href="javascript:;" class="indent-btn-999" data-order-id="{$vo.id}">查看物流</a>
                    {/notempty}
                    {in name="vo.status" value="6"}
                        {eq name="vo.comment_status" value="1"}
                            <a href="{:url('comment/index', ['id' => $vo['id']])}" class="indent-btn-b20">评价</a>
                        {/eq}
                        <!--{eq name="vo.after_status" value="1"}-->
                            <!--<a href="" class="indent-btn-b20">退货</a>-->
                        <!--{/eq}-->
                    {/in}
                </div>
            </div>
        </div>
    {/volist}
{/empty}